package com.itlong.cloud.app.service.impl;

import com.itlong.cloud.POJO.VO.app.old.AppOldProjectVO;
import com.itlong.cloud.app.dao.IAppOldProjectDao;
import com.itlong.cloud.app.service.IAppOldProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <desc>
 *      旧版APP项目信息服务层接口实现类
 * </desc>
 *
 * @createDate 2017/10/18
 */
@Service
public class AppOldProjectServiceImpl implements IAppOldProjectService{

    @Autowired
    IAppOldProjectDao iAppOldProjectDao;

    /**
     * <desc>
     *     旧版APP_获取所有项目信息列表
     * </desc>
     * @param status 状态：0删除 1正常 2禁用
     * @return
     * @author cuiduanwu
     * @createDate 2017/10/18
     */
    @Override
    @Transactional(rollbackFor = Exception.class,propagation = Propagation.REQUIRED)
    public List<AppOldProjectVO> getAllProjectInfo(String status){
        return  iAppOldProjectDao.getAllProjectInfo(status);
    }

}
